import React from 'react'
import { Menu } from 'antd'
import { MenuItemProps } from 'antd/es/menu/MenuItem'

interface IProps extends MenuItemProps {
    menu: any
}

export default class BaseMenuItem extends React.Component<IProps> {
    public render() {
        const { key, title } = this.props.menu
        return (
            <Menu.Item {...this.props} key={key}>{title}</Menu.Item>
        )
    }
}